<?php
/* 监控要求  monitor */
class MonitorModel extends BaseModel
{
    var $table  = 'monitor';
    var $prikey = 'm_tid';
    var $_name  = 'monitor';
    
    var $_relation  = array(
        // 一个监控要求只属于一个运单
        'belongs_to_waybill' => array(
            'model'         => 'waybill',
            'type'          => BELONGS_TO,
            'foreign_key'   => 'wm_tid',
            'reverse'       => 'has_monitor',
        ),
    );
}
?>